package com.raigor.system.mapper;

import java.util.List;
import com.raigor.system.domain.SysUserApikey;

/**
 * 用户apikeyMapper接口
 * 
 * @author libaolu
 * @date 2021-12-31
 */
public interface SysUserApikeyMapper 
{
    /**
     * 查询用户apikey
     * 
     * @param userId 用户id
     * @return 用户apikey
     */
    public SysUserApikey selectSysUserApikeyByUserId(Long userId);

    /**
     * 查询用户apikey列表
     * 
     * @param sysUserApikey 用户apikey
     * @return 用户apikey集合
     */
    public List<SysUserApikey> selectSysUserApikeyList(SysUserApikey sysUserApikey);

    /**
     * 新增用户apikey
     * 
     * @param sysUserApikey 用户apikey
     * @return 结果
     */
    public int insertSysUserApikey(SysUserApikey sysUserApikey);

    /**
     * 修改用户apikey
     * 
     * @param sysUserApikey 用户apikey
     * @return 结果
     */
    public int updateSysUserApikey(SysUserApikey sysUserApikey);

    /**
     * 删除用户apikey
     * 
     * @param apiKey 用户apikey主键
     * @return 结果
     */
    public int deleteSysUserApikeyByApiKey(String apiKey);

    /**
     * 批量删除用户apikey
     * 
     * @param apiKeys 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserApikeyByApiKeys(String[] apiKeys);
}
